package com.dkm.ec.pay.repository.impl;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.dkm.base.core.helper.SpringHelper;
import com.dkm.base.db.persistence.dao.IQueryDao;
import com.dkm.biz.repository.AbstractRepository;
import com.dkm.ec.pay.domain.PayCharge;
import com.dkm.ec.pay.repository.PayChargeRepository;
import com.dkm.ec.pay.persistence.dao.PayChargeQueryDao;
import com.dkm.ec.pay.persistence.entity.PayChargePo;

/**
 * 对象功能:t_pay_charge Repository接口的实现类
 * 开发公司:dkm.com
 * 开发人员:ZHH
 * 创建时间:2017-05-23 11:03:44
 */
@Repository
public class PayChargeRepositoryImpl extends AbstractRepository<String, PayChargePo,PayCharge> implements PayChargeRepository{
	  
	@Resource
	private  PayChargeQueryDao payChargeQueryDao;

	public PayCharge newInstance() {
		PayChargePo po = new PayChargePo();
		PayCharge payCharge = SpringHelper.getBean(PayCharge.class);
		payCharge.setData(po);
		return payCharge;
	}

	public PayCharge newInstance(PayChargePo po) {
		PayCharge payCharge = SpringHelper.getBean(PayCharge.class);
		payCharge.setData(po);
		return payCharge;
	} 
	
	@Override
	protected IQueryDao<String, PayChargePo> getQueryDao() {
		return payChargeQueryDao;
	}
	
}
